import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import {
  Container, Aside, Header, Main,
  Menu, Submenu, MenuItemGroup, MenuItem, Breadcrumb,
  BreadcrumbItem, Avatar, Dropdown, DropdownItem, DropdownMenu,
  Form, FormItem, Input, DatePicker, Button, Table, TableColumn,
  Switch, Pagination, Drawer, Select, Option, message, Upload,
  Tooltip, Tag, MessageBox, Card, InputNumber, Row, Col
} from 'element-ui'
// 使用富文本
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
import * as echarts from 'echarts'
import BaiduMap from 'vue-baidu-map'
import JsonExcel from 'vue-json-excel'

Vue.component('downloadExcel', JsonExcel)
Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: 'kP5h7VPFxwxjYUPlNQT1mxKaVgRe9dPn'
})

Vue.prototype.$echarts = echarts
Vue.use(VueQuillEditor, {
})
const { alert, confirm } = MessageBox

Vue.prototype.$alert = alert
Vue.prototype.$confirm = confirm
Vue.prototype.$message = message
Vue.use(Container)
  .use(Aside)
  .use(Header)
  .use(Main)
  .use(Menu)
  .use(Submenu)
  .use(MenuItemGroup)
  .use(MenuItem)
  .use(Breadcrumb)
  .use(BreadcrumbItem)
  .use(Avatar)
  .use(Dropdown)
  .use(DropdownItem)
  .use(DropdownMenu)
  .use(Form)
  .use(FormItem)
  .use(Input)
  .use(DatePicker)
  .use(Button)
  .use(Table)
  .use(TableColumn)
  .use(Switch)
  .use(Pagination)
  .use(Drawer)
  .use(Select)
  .use(Option)
  .use(Upload)
  .use(Tooltip)
  .use(Tag)
  .use(Card)
  .use(InputNumber)
  .use(Row)
  .use(Col)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
